package com.lbn.monitor.widget.chart;

import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;

import com.lbn.monitor.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class ChartTestActivity extends AppCompatActivity {

    @BindView(R.id.monitor_chart)
    MonitorView chart;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chart_test);
        ButterKnife.bind(this);

    }

    @OnClick(R.id.button)
    public void onClick() {
        chart.addElement(new Element(1488894008 * 1000, 500));
    }
}
